package Level03_one;
//四条腿黑色的狗会吃饭(吃骨头)和看家
//两条腿的绿色鹦鹉吃饭(吃小米)和说话.
public class Animal {
    private int legs;
    private String color;

    void eat(){
    }

    public Animal(int legs, String color) {
        this.legs = legs;
        this.color = color;
    }

    public int getLegs() {
        return legs;
    }

    public void setLegs(int legs) {
        this.legs = legs;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
